package com.basic.library.view

import android.content.Context
import com.maning.mndialoglibrary.config.MDialogConfig


/**
 * @author yj
 * @description
 */
class MToastUtil {

    companion object {
        private val mToastUtil = MToastUtil()
        fun getInstance() = mToastUtil
    }

    fun showMToast(context: Context, title: String) {
        val mDialogConfig = MDialogConfig.Builder()
                .isCanceledOnTouchOutside(true)
                .isCancelable(true)
                .build()
        val mStatusDialog = MYStatusDialog(context, mDialogConfig)
        //显示
        mStatusDialog.show(title, null, 10 * 60)
    }
}